package com.cykj.v_m_sprintboot.mapper;

import com.cykj.v_m_sprintboot.bean.TbInput;
import com.cykj.v_m_sprintboot.bean.TbOut;
import com.cykj.v_m_sprintboot.bean.TbWarehouseListInf;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Repository
public interface TbInputMapper {
    List<TbInput> getSupplier(@Param(value = "supplierStateId")int supplierStateId);
    String getGoodsType(@Param(value = "supplierId") int supplierId);
    List<TbInput> getGoodsName(@Param(value = "goodsListType")String goodsListType);
    List<TbInput> getWarehouseName(@Param(value = "warehouseStateId")int warehouseStateId);
    boolean addInputData(TbInput tbInput);
    boolean addGoods(TbInput tbInput);
    TbInput selectAddGoodsId (TbInput tbInput);
    boolean updateWarehouseNumState(@Param(value = "warehouseId")int warehouseId,@Param(value = "warehouseNum")int warehouseNum);
    int selectWarehouse(@Param(value = "warehouseId")int warehouseId);
    String getGoodsTypeByGoodsListId(@Param(value = "goodsListId")int goodsListId);
    List<TbInput>getWarehousing(TbInput tbInput, RowBounds row);
    boolean updateWarehouseModifyTime(@Param(value = "warehouseId")int warehouseId, @Param(value = "modifyTime")String modifyTime);
    int warehousingCount(TbInput tbInput);
    boolean delInput(@Param("inputId")int inputId,@Param("stateListId")int stateListId);
    TbWarehouseListInf selectGoodsInf(TbInput tbInput);
    boolean addTbWarehouseListInf(TbInput tbInput);
    double countTbWarehouseListInf(TbInput tbInput);
    boolean updateTbWarehouseListInfNum (TbInput tbInput);
}
